<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
      <div id="div">zyc</div>
</body>
<script src="../layui/layui.js"></script>

<script>
    layui.config({
        base: '../js/' //你存放新模块的目录，注意，不是layui的模块目录
    }).use(['index'],function () {
         console.log()
    });
</script>



</html>